import sys
from PyQt5.QtWidgets import QApplication,QMainWindow,QFileDialog,QMessageBox
from uiLib import logingui

def login(ui):
	user = ui.lineEdit.text()
	with open('user.info','w') as f:
		f.write(user)
	sys.exit()



if __name__ == '__main__':
	app = QApplication(sys.argv)
	MainWindow = QMainWindow()
	ui = logingui.Ui_MainWindow()
	ui.setupUi(MainWindow)

	ui.pushButton.clicked.connect(lambda:login(ui))

	MainWindow.show()
	sys.exit(app.exec_())
















